<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script type="text/javascript">
        alert('Welcome to JavaScript');
    </script>
</head>

<body>



</body>

</html>


<!-- 怎样向页面添加 JavaScript？ -->
<!-- https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/What_is_JavaScript#%E6%80%8E%E6%A0%B7%E5%90%91%E9%A1%B5%E9%9D%A2%E6%B7%BB%E5%8A%A0_javascript%EF%BC%9F -->

<!-- 内部 JavaScript -->
<!-- https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/What_is_JavaScript#%E5%86%85%E9%83%A8_javascript -->